package com.wugh.fast.kernel.util.recursive;

import com.wugh.fast.kernel.util.exception.FastRecursiveException;

import java.util.concurrent.atomic.AtomicInteger;
import java.util.function.BiFunction;
import java.util.function.BiPredicate;
import java.util.function.BinaryOperator;
import java.util.function.Function;

/**
 * 说明: 简单递归
 * <pre>
 *     即入参和返回的类型相同,默认会把上次递归的返回值作为下次递归的入参
 * </pre>
 *
 * @author wugh
 * @date 2019-12-11 15:31
 */
public class SingleRecursive<T> extends DefaultRecursive<T, T> {
    public SingleRecursive() {
        this.map = (p, n) -> n;
    }
}
